/*
 * @Description: 邀请
 * @Author: XuYang 
 * @Date: 2019-06-09 12:45:51 
 * @Last Modified by: XuYang
 * @Last Modified time: 2019-06-10 17:44:44
 */

import { AjaxServer } from './index';

/**
 * 获取邀请统计
 * @param {object} params 参数
 */
export async function getInviteStatisticsDataApi(token) {
  return AjaxServer('get', '/v1/promote/statistics', token);
}
/**
 * 获取邀请树数据
 * @param {object} params 参数
 */
export async function getInviteTreeDataApi(token) {
  return AjaxServer('get', '/v1/promote/tree', token);
}
/**
 * 邀请
 * @param {*} token 
 */
export async function getPromoteIndexApi(token){
  return AjaxServer('get', '/v1/promote/index', token);
}